/*
 * @Description: vip
 * @Author: iamsmiling
 * @Date: 2021-06-11 21:25:01
 * @LastEditTime: 2021-06-12 10:11:13
 */

import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/domain/local/pay/pay_entity.dart';
import 'package:credit_business_circle/domain/local/vip/vip_entity.dart';
import 'package:get/get.dart';

class VipController extends GetxController {
  VipType vipType = VipType.month;
  List<VipEntity> options = [
    VipEntity(
        type: VipType.month,
        label: "VIP月卡",
        price: "198",
        description: "赠",
        extra: ["刷新卡X5", "联系卡X5", "顶卡X5"]),
    VipEntity(
        type: VipType.quarter,
        label: "VIP季卡",
        price: "398",
        description: "赠",
        extra: ["刷新卡X15", "联系卡X15", "顶卡X15"]),
    VipEntity(
        type: VipType.year,
        label: "VIP年卡",
        price: "1298",
        description: "赠",
        extra: ["刷新卡X50", "联系卡X50", "顶卡X50"])
  ];

  List<VipPrivilegeEntity> rules = [
    VipPrivilegeEntity(label: "合租信息发布", v1: "限制2条", v2: "无限制"),
    VipPrivilegeEntity(label: "联系方式获取", v1: "每日免费1次", v2: "每日免费3次"),
    VipPrivilegeEntity(label: "信息免费刷新", v1: "每日免费1次", v2: "每日免费3次"),
    VipPrivilegeEntity(label: "券自动使用", v1: "无权限", v2: "可设置自动使"),
    VipPrivilegeEntity(label: "信息自由留言", v1: "限常用语", v2: "每日限次"),
    VipPrivilegeEntity(label: "道具商城购买", v1: "单张无优惠", v2: "全场8折优惠"),
    VipPrivilegeEntity(label: "发布优先审核", enable1: false, enable2: true),
    VipPrivilegeEntity(label: "搜索展示靠前", enable1: false, enable2: true),
    VipPrivilegeEntity(label: "VIP专属卡包", enable1: false, enable2: true),
    VipPrivilegeEntity(label: "大厅信息变色", enable1: false, enable2: false),
  ];

  List<PayEntity> channels = [
    PayEntity(label: "支付宝充值", icon: R.image.alipaySmall),
    PayEntity(label: "微信充值", icon: R.image.wechatPaySmall),
    PayEntity(label: "云闪付", icon: R.image.unionPay),
    PayEntity(label: "账户余额", icon: R.image.balance, description: "（可用余额：68元）")
  ];
}
